package com.bjtu.laorenyouhao.laoren.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bjtu.common.utils.PageUtils;
import com.bjtu.common.utils.Query;

import com.bjtu.laorenyouhao.laoren.dao.LaorenFriendDao;
import com.bjtu.laorenyouhao.laoren.entity.LaorenFriendEntity;
import com.bjtu.laorenyouhao.laoren.service.LaorenFriendService;


@Service("laorenFriendService")
public class LaorenFriendServiceImpl extends ServiceImpl<LaorenFriendDao, LaorenFriendEntity> implements LaorenFriendService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LaorenFriendEntity> page = this.page(
                new Query<LaorenFriendEntity>().getPage(params),
                new QueryWrapper<LaorenFriendEntity>()
        );

        return new PageUtils(page);
    }

}